/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calculator;

import calculator.core.ICalculatorDataProvider;
import calculator.core.ICalculatorDataRenderer;
import calculator.core.MockDataProvider;
import calculator.core.MockDataRenderer;
import calculator.manager.ApplicationManager;
import calculator.manager.IApplicationManager;

/**
 *
 * @author Dargor
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // działanie programu z obiektami typu MOCK - wejcie otrzymuja z
        //parametrow konstruktora a nie z zadnych operacji wejscia wyjscia        
        IApplicationManager appManager = new ApplicationManager(null , null);
        ICalculatorDataProvider dp = new MockDataProvider("10", "15", "IntegerNumber", "IntegerNumber", "+", appManager);
        ICalculatorDataRenderer renderer = new MockDataRenderer();
        appManager.setDataProvider(dp);
        appManager.setDataRenderer(renderer);
        ((MockDataProvider)dp).triggerOperation();
    }

}
